<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script>
        var name = prompt('我长得帅不帅','特别帅')
        if(name == '帅'){
            alert('输入正确')

        }else{
            alert('请重新输入')
        }
    
    
    
    </script>
</head>
<body>
</body>
</html>